package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.xinsoft.common.BaseEntity;
import lombok.Data;

/**
 * 发货通知
 * @TableName scm_sale_notice
 */
@TableName(value ="scm_sale_notice")
@Data
public class ScmSaleNotice extends BaseEntity implements Serializable {

    /**
     * 发货通知单号
     */
    @TableField(value = "sale_notice_no")
    private String saleNoticeNo;

    /**
     * 客户id
     */
    @TableField(value = "client_id")
    private Integer clientId;

    /**
     * 销售员
     */
    @TableField(value = "sales_person_id")
    private Integer salesPersonId;

    /**
     * 联系人名称
     */
    @TableField(value = "linkman_name")
    private String linkmanName;

    /**
     * 联系人电话
     */
    @TableField(value = "linkman_phone")
    private String linkmanPhone;

    /**
     * 销售方式
     */
    @TableField(value = "sale_type")
    private Integer saleType;

    /**
     * 收货地址
     */
    @TableField(value = "goods_address")
    private String goodsAddress;

    /**
     * 运输方式
     */
    @TableField(value = "transport_method")
    private Integer transportMethod;

    /**
     * 物流单号
     */
    @TableField(value = "logistics_no")
    private String logisticsNo;

    /**
     * 物流公司
     */
    @TableField(value = "logistics_com")
    private String logisticsCom;

    /**
     * 运输费用
     */
    @TableField(value = "transport_cost")
    private BigDecimal transportCost;

    /**
     * 通知时间
     */
    @TableField(value = "notice_time")
    private Date noticeTime;

    /**
     * 关闭状态(0未关闭/1关闭)
     */
    @TableField(value = "do_close")
    private Integer doClose;

    /**
     * 项目Id
     */
    @TableField(value = "project_id")
    private Integer projectId;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 审批状态 默认0暂存, 1:已提交(审批中), 2:驳回, 3:审批通过
     */
    @TableField(value = "approve_status")
    private Integer approveStatus;

    /**
     * 申请人ID
     */
    @TableField(value = "apply_person_id")
    private Integer applyPersonId;

    /**
     * 申请时间
     */
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 付款类型id
     */
    @TableField(value = "pay_type")
    private Integer payType;

    /**
     * 单据状态1.生产中2.已入库3.已发货4.已收货
     */
    @TableField(value = "contract_status")
    private Integer contractStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}